package com.otupia.acs.locator;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.cvlep.appbase.locator.Locator;

public class SpringLocator implements Locator {

	private static final String SPRING_CONFIG_FILE = "classpath:com/otupia/acs/config/spring/otupia_acs_context.xml";
	private static ApplicationContext context = new FileSystemXmlApplicationContext(SpringLocator.SPRING_CONFIG_FILE); 
	@Override
	public Object getBean(String beanName) {
		return SpringLocator.context.getBean(beanName);
	}
}
